package com.mind.ridge.service.front;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mind.ridge.pojo.front.User;
import com.mind.ridge.utils.R;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * @author Mind
 */
public interface UserService extends IService<User> {

    /**
     * 发送验证码功能
     * @param user   获取用户输入的手机号，若为新用户则自动注册
     * @param request 将用户信息和验证码存储到session中
     * @return
     */
    R<User> sendMsg(User user, HttpServletRequest request);

    R<String> login(Map<String,String> map,HttpServletRequest request);
}
